finding the derivative of integral with x on both bounds